/*
 * Copyright (C) 2008 ZXing authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.bridgetree.jubaocrm.ui;

import android.util.Log;


/**
 * The set of constants to use when sending Barcode Scanner an Intent which
 * requests a barcode to be encoded.
 */
public final class Contents {
	
	private Contents() {
	}

	/**
	 * debug
	 */
	public static boolean DEBUG = false ;
	public static final String KEY_PERSONAL_LOGIN_STATE = "personal_login_state";
	public static final String KEY_PERSONAL_LOGIN_USEID = "personal_login_useid";
	public static final String KEY_PERSONAL_LOGIN_TAKEN = "personal_login_taken";
	
	public static int adpaterw = -45;

	public static final String KEY_PERSONAL_USERNAME = "personal_username";
	public static final String KEY_PERSONAL_PASSWORD = "personal_password";

	public static void AdapterSetting(int screenWidth , int screenHeight,float screenScale){
		//  	  Width =  720 // Height =  1280 // Scale =  2.0
		Log.e("wop"," Width =  "+screenWidth
				+" // Height =  "+screenHeight
				+" // Scale =  "+screenScale);
		if(screenWidth == 720 && screenHeight == 1280){
//			Width =  720 // Height =  1280 // Scale =  2.0
			adpaterw = 10;
		}else if(screenWidth == 720 && screenHeight == 1184){
			//Width =  720 // Height =  1184 // Scale =  2.0
			adpaterw = 20;
		}else if(screenWidth == 540 && screenHeight == 960){
			adpaterw = -45;
		}else if(screenWidth == 480 && screenHeight == 800){
			adpaterw = -45;
		}else if(screenWidth == 1080 && screenHeight == 1776){
			adpaterw = 20;
		}else if(screenWidth == 800 && screenHeight == 1280){
			adpaterw = 20;
		}else if(screenWidth == 600 && screenHeight == 1024){
			adpaterw = 20;
		}else if(screenWidth == 1080){
			adpaterw = 20;
		}else{
			adpaterw = -45;
		}
		
	}
	
}
